package com.dt76.smallloanbackenduser.remote.lhuaw;

import com.dt76.smallloanbackenduser.hystrix.lhuaw.advertHystrix;
import com.dt76.smallloanbackenduser.pojo.lhuaw.AdvertisingManagement;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="smallloan-backend-service",fallback = advertHystrix.class)
public interface AdvertisingManagementtest {
    //App推送消息 lhuawHystrix
    @RequestMapping("/lhuaw/qryAllAdvert")
    List<AdvertisingManagement> qryAllAdvert();
    @RequestMapping("/lhuaw/qryConditionPageAllAdvertising")
    public Page getConditionPageAllAdvertising(
            @RequestParam("pageIndex") int pageIndex,
            @RequestParam("advertisingName") String advertisingName,
            @RequestParam("advertisingLocation") String advertisingLocation
    );
    //删除
    @RequestMapping("/lhuaw/delAdvertising")
    public Result delAdvertising(@RequestParam("advId")int advId);
//App推送消息
}
